/**
 * @author renato
 * Created on 28/04/2006
 */
package br.unb.plugins.geral.validation;

import br.unb.utils.Resource;

public class NotNullValidation implements Validation {

    public String validate(String value) {
        if (value == null) {
            return Resource.getString("MUST_NOT_BE_NULL");
        } else if (value.equals("")) {
            return Resource.getString("MUST_NOT_BE_EMPTY");
        } else {
            return null;
        }
    }
}
